package com.gzz.orchid.context.domain.financial.entity;

import com.gzz.orchid.common.core.util.I18nUtil;
import lombok.Value;
import org.springframework.util.Assert;

/**
 * 账户编号
 *
 * @author higmd
 */
@Value
public class AccountNo {
    String value;

    public AccountNo(String value) {
        Assert.hasText(value, I18nUtil.ofMessage("账户不能为空"));
        this.value = value;
    }
}
